package com.guchenbo.example.collection;

import java.util.HashMap;

/**
 * @Author guchenbo
 * @Date 2020/2/27.
 */
public class MapTest {
    public static void main(String[] args) {
        HashMap<String,Integer> m1 = new HashMap();

        for (int i = 0; i < 10; i++) {
            String key = String.valueOf("xxx" + i+"da");
            if (i % 3 == 0) {
                key = "test";
            }
//            System.out.println(key.hashCode()%16);
            m1.put(key, Integer.valueOf(i));
        }


        System.out.println(m1.size());
        for (int i = 0; i < 4; i++) {
            for (String s : m1.keySet()) {
                System.out.println(s);
            }
            System.out.println("#######");
        }

    }
}
